Class: Widget
Auto.js Pro 9 Docs / ui/view / Widget
Class: Widget
ui/view.Widget
- created
- render
- rootViewCreated: root view created but children are not inflated
- inflated: children inflated and internal and initial attributes are applied, but external attributes are not applied
- mounted: external attributes applied
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new Widget()
Properties
attrs
• attrs: WidgetAttributes
= {}
Accessors
initialAttributes
• get
initialAttributes(): WidgetAttributes
Returns
view
• get
view(): any
Returns
any
Methods
created
▸ created(): void
Returns
void
getAttribute
▸ getAttribute(name
, def
): AttributeValue
Parameters
Name | Type |
---|---|
name | string |
def | () => AttributeValue |
Returns
hasAttribute
▸ hasAttribute(name
): boolean
Parameters
Name | Type |
---|---|
name | string |
Returns
boolean
inflated
▸ inflated(): void
Returns
void
mounted
▸ mounted(): void
Returns
void
render
▸ Abstract
render(context
, parent
): any
Parameters
Name | Type |
---|---|
context | Context |
parent | ViewGroup |
Returns
any
rootViewCreated
▸ rootViewCreated(view
): void
Parameters
Name | Type |
---|---|
view | any |
Returns
void
setAttribute
▸ setAttribute(name
, value
, def
): void
Parameters
Name | Type |
---|---|
name | string |
value | AttributeValue |
def | (value : AttributeValue ) => void |
Returns
void
create
▸ Static
create(name
): undefined
| Widget
Parameters
Name | Type |
---|---|
name | string |
Returns
undefined
| Widget
of
▸ Static
of<W
>(view
): undefined
| W
Type parameters
Name | Type |
---|---|
W | extends Widget <W > |
Parameters
Name | Type |
---|---|
view | View |
Returns
undefined
| W
register
▸ Static
register(name
, widget
): void
Parameters
Name | Type |
---|---|
name | string |
widget | WidgetClass |
Returns
void